package com.ruoyi.pos.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 支付功能对象 _payment
 *
 * @author ruoyi
 * @date 2021-05-16
 */
public class Payment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id标识 */
    private Long id;

    /** 支付编号uuid */
    @Excel(name = "支付编号uuid")
    private String paymentCode;

    /** 订单编号uuid */
    @Excel(name = "订单编号uuid")
    private String orderCode;

    /** 应收金额 */
    @Excel(name = "应收金额")
    private BigDecimal amount;

    /** 支付方式，0表示现金支付，1表示支付宝支付，2表示微信支付，3表示用银行卡支付，4表示用其他方式支付 */
    @Excel(name = "支付方式，0表示现金支付，1表示支付宝支付，2表示微信支付，3表示用银行卡支付，4表示用其他方式支付")
    private Integer payType;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payDate;

    /** 操作员id */
    @Excel(name = "操作员id")
    private Long opId;

    /** 店铺id */
    @Excel(name = "店铺id")
    private Long shopId;

    /** 实收金额 */
    @Excel(name = "实收金额")
    private BigDecimal actualMoney;

    /** 会员折扣 */
    @Excel(name = "会员折扣")
    private Double discount;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setPaymentCode(String paymentCode)
    {
        this.paymentCode = paymentCode;
    }

    public String getPaymentCode()
    {
        return paymentCode;
    }
    public void setOrderCode(String orderCode)
    {
        this.orderCode = orderCode;
    }

    public String getOrderCode()
    {
        return orderCode;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setPayType(Integer payType)
    {
        this.payType = payType;
    }

    public Integer getPayType()
    {
        return payType;
    }
    public void setPayDate(Date payDate)
    {
        this.payDate = payDate;
    }

    public Date getPayDate()
    {
        return payDate;
    }
    public void setOpId(Long opId)
    {
        this.opId = opId;
    }

    public Long getOpId()
    {
        return opId;
    }
    public void setShopId(Long shopId)
    {
        this.shopId = shopId;
    }

    public Long getShopId()
    {
        return shopId;
    }
    public void setActualMoney(BigDecimal actualMoney)
    {
        this.actualMoney = actualMoney;
    }

    public BigDecimal getActualMoney()
    {
        return actualMoney;
    }
    public void setDiscount(Double discount)
    {
        this.discount = discount;
    }

    public Double getDiscount()
    {
        return discount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("paymentCode", getPaymentCode())
                .append("orderCode", getOrderCode())
                .append("amount", getAmount())
                .append("payType", getPayType())
                .append("payDate", getPayDate())
                .append("opId", getOpId())
                .append("shopId", getShopId())
                .append("actualMoney", getActualMoney())
                .append("discount", getDiscount())
                .toString();
    }
}
